package timetable.tools;

public class StringTools {
	
	public static java.lang.String charArrayToString(char[] input)
	{
		java.lang.String r = "";
		for (int i = 0; i < input.length; i++)
		{
			r = r + "" + input[i];
		}
		return r;
	}
	
	public static java.lang.String getExtension(String filepath)
	{
		return filepath.substring(filepath.lastIndexOf('.') + 1);
	}
	
	public static java.lang.String getFileName(String filepath)
	{	
		return filepath.substring(filepath.lastIndexOf('/') + 1);
	}
}
